import { setVerifyApi, VerifyApi } from '@zl-crud/components'
import Http from './http.js'

const verifyApi: VerifyApi = {
  /**
   * 获取验证码
   * @param data
   */
  get: (data) => Http.post('/captcha/get', data),
  /**
   * 校验验证码
   * @param data
   */
  check: (data) => Http.post('/captcha/check', data),
}

setVerifyApi(verifyApi)
